package com.geekhalo.schedule.v2;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

public interface TaskDefinitionV2Repository extends JpaRepository<TaskDefinitionV2, Long> {
    List<TaskDefinitionV2> getByStatusAndNextRunAtLessThan(TaskStatus enable, Date date);
}
